package zuoye;

public class Subject {
	private long id;
	private String subjectname;
	private long classhour;
	private long gradeid;

	public Subject() {

	}

	public Subject(long id, String subjectname, long classhour, long gradeid) {
		super();
		this.id = id;
		this.subjectname = subjectname;
		this.classhour = classhour;
		this.gradeid = gradeid;
	}

	public Subject(String subjectname, long classhour, long gradeid) {
		super();
		this.subjectname = subjectname;
		this.classhour = classhour;
		this.gradeid = gradeid;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getSubjectname() {
		return subjectname;
	}

	public void setSubjectname(String subjectname) {
		this.subjectname = subjectname;
	}

	public long getClasshour() {
		return classhour;
	}

	public void setClasshour(long classhour) {
		this.classhour = classhour;
	}

	public long getGradeid() {
		return gradeid;
	}

	public void setGradeid(long gradeid) {
		this.gradeid = gradeid;
	}

	@Override
	public String toString() {
		return "Subject [id=" + id + ", subjectname=" + subjectname + ", classhour=" + classhour + ", gradeid="
				+ gradeid + "]";
	}

}
